<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <title>图书馆座位预约系统</title>
    <script type="text/javascript" src="{{ basepath }}static/js/jquery.js"></script>
    <!--plugin-->
    <style type="text/css">
        body {
            width:100%;
            height:100%;
            background-image:url("../library/static/img/index_img.jpg");
            background-repeat:no-repeat;
            background-size:100%;
            z-index:0;
        }
        .header {
            font-family:"楷体";
            text-align:center;
            font-size:70px;
            color:#666167;
            font-weight:900;
        }
        .content{
            width:81%;
            min-width: 1000px;
            margin:0 auto;

        }
        .content table{
            width:100%;
            border-color:#eee;
        }
        .content p {
            text-align:center;
            font-size:30px;
            color:white;
        }
    </style>
</head>
<body>
<!-------------------------------------- 头部开始 -------------------------------------->
<div class="h044"></div>
<!-------------------------------------- 头部结束 -------------------------------------->
<!-------------------------------------- 内容开始 -------------------------------------->
<main>
    <div class="header">
        <p>图书馆座位预约系统</p>
    </div>
    <div class="content">
         <table border="1" cellspacing="0" cellpadding="10">
             <tr><td>姓名:</td><td>{{ student_datas[0].name }}</td></tr>
             <tr><td>学号：</td><td>{{ student_datas[0].student_id }}</td></tr>
             <tr><td>专业：</td><td>{{ student_datas[0].zy }}</td></tr>
             <tr><td>当前状态：</td><td>{{sygz_data[0].state}}</td></tr>
             <tr><td>用馆规则：</td><td>{{sygz_data[0].yggz}}</td></tr>
             <tr><td>违规规则：</td><td>{{sygz_data[0].wggz}}</td></tr>
             <tr><td></td></tr>
         </table>
        <form>
        意见反馈：
        <textarea rows="6" cols="130" name="意见反馈内容" placeholder="请输入反馈内容" id="feedback"></textarea>
             <input type="button" value="提交" onclick="sub()">
    </form>
    </div>


</main>
<!-------------------------------------- 内容结束 -------------------------------------->
<!-------------------------------------- 尾部开始 -------------------------------------->
<footer>
    <div class="container">

    </div>
</footer>
<!-------------------------------------- 尾部开始 -------------------------------------->
</body>
</html>
<style>

</style>
<script>
    $(function () {

    });

    function sub(){
        var feedback = $('#feedback').val();
        var data = {
            feedback: feedback,
        }

        $.ajax({
           type: "get",
           url: "{{ basepath }}feedback",
           dataType: "json",
           data:data ,
            success: function (data) {
               alert("提交成功");
               console.log(data);
           }

       });

    }

</script>

